package mobileMoney;

public class TransactionType {
	int typeCode; // any code
	boolean nature; // deposit, withdraw
	String description=""; // description
	double perOcurrance=0; // percentage of occurrance
	double minVal=0; // min value
	double maxVal=0;  // max value
	boolean cyclic=false; // cyclic operation
	int numPerCycle; // num of occurrances in a cycle 
	public int getTypeCode() {
		return typeCode;
	}
	public void setTypeCode(int typeCode) {
		this.typeCode = typeCode;
	}
	public boolean isNature() {
		return nature;
	}
	public void setNature(boolean nature) {
		this.nature = nature;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public double getPerOcurrance() {
		return perOcurrance;
	}
	public void setPerOcurrance(double perOcurrance) {
		this.perOcurrance = perOcurrance;
	}
	public double getMinVal() {
		return minVal;
	}
	public void setMinVal(double minVal) {
		this.minVal = minVal;
	}
	public double getMaxVal() {
		return maxVal;
	}
	public void setMaxVal(double maxVal) {
		this.maxVal = maxVal;
	}
	public boolean isCyclic() {
		return cyclic;
	}
	public void setCyclic(boolean cyclic) {
		this.cyclic = cyclic;
	}
	public int getNumPerCycle() {
		return numPerCycle;
	}
	public void setNumPerCycle(int numPerCycle) {
		this.numPerCycle = numPerCycle;
	}
	public TransactionType() {
		super();
	}
	
	public String getRecord(){
		String ps = null;
		ps = "'" + typeCode + "','"
				+ Boolean.toString(nature) + "'," + minVal + ","
				+ maxVal + ",'" + Boolean.toString(isCyclic()) + "'";
		return ps;
	}

}
